﻿// ConsoleApplication1.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <iostream>

using namespace std;
int main()
{
    const int size = 10;
    int a[size];
    for (int i = 0; i < size; ++i) {
        a[i] = i;
    }
    // begin() end()
    int* pb = begin(a);
    int* pe = end(a);
    while (pb != pe) {
        *pb = 0;
        pb++;
    }
    for (int i = 0; i < size; ++i) {
        cout << a[i];
    }
}


